package com.book.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author cxy
 * @since 2023-10-16 11:59:51
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_records")
public class Records implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("reader_id")
    private Long readerId;

    @TableField("book_id")
    private Long bookId;

    @TableField("chaper_id")
    private Long chaperId;

    @TableField(value = "reader_time",fill = FieldFill.INSERT_UPDATE)
    private Date readerTime;

    @TableField("collect")
    private Integer collect;

    @TableField("page")
    private Integer page;

    @TableField("addr1")
    private Integer addr1;

    @TableField("addr2")
    private String addr2;


    public static final String ID = "id";

    public static final String READER_ID = "reader_id";

    public static final String BOOK_ID = "book_id";

    public static final String CHAPER_ID = "chaper_id";

    public static final String READER_TIME = "reader_time";

    public static final String COLLECT = "collect";

    public static final String PAGE = "page";

    public static final String ADDR1 = "addr1";

    public static final String ADDR2 = "addr2";

}
